package net.basshista.jsshtunneling.utils;

public class Validation {

    public static boolean validate(Object... values) {
	for (Object value : values) {
	    if (value != null) {
		if (value instanceof String) {
		    String str = (String) value;
		    if ("".equals(str))
			return false;
		} else if (value instanceof Number) {
		    Number num = (Number) value;
		    if (num.longValue() == 0)
			return false;
		}
	    }
	}
	return true;
    }

}